#include <AT89X52.h>

unsigned char choose[8]={0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f};
unsigned char charactor[8]={0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f};
int i;

void delay()
{
  unsigned int a;
  for(a=65535;a>0;a--)
  {

  }
}
void main()
{
  while(1)
    {
      for(i=0;;i++)
        {
          P1=choose[i%8];
          P0=charactor[i%8];
          delay();
        }
    }
}
